package com.hardware.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hardware.common.R;
import com.hardware.dto.EmployeeDto;
import com.hardware.entity.Employee;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

public interface EmployeeService extends IService<Employee> {
    R<EmployeeDto> login(HttpServletRequest request, Employee employee);
    R<String> save(HttpServletRequest request, Employee employee);
    R<Page> page(int page, int pageSize, String name);
    R<String> update(HttpServletRequest request,@RequestBody Employee employee);

}
